<?php 
$currentUrl = $this->url->getCurrentUrl();
?>
<!-- ********************************************************************* -->
<!-- Begin Main Navigation with Search -->
<div id="global-navigation-shell">
	<div id="global-navigation">
		<ul id="menu"><!-- Dropdown Menu: See Section J in custom.js -->
			<?php $i = 0;?>
			<?php 
				foreach ($navList as $nav):
					$url = empty($nav->url) ? $this->url->action($nav->action, $nav->controller, $nav->area) : $nav->url;
			?>
				<li <?php if($i == 0):?>class="no-dash"<?php endif;?>>
					<?php if(!isset($nav->subs)):?>
						<a href="<?php echo $url?>" <?php if($currentUrl == $url):?>class="current"<?php endif;?>>
							<?php echo $nav->title?>
						</a>
					<?php else:?>
						<a href="<?php echo $url?>" <?php if($currentUrl == $url):?>class="current"<?php endif;?>>
							<?php echo $nav->title?><span class="ico-text ico-text-database"></span>
						</a>
						<ul>
							<?php 
								foreach ($nav->subs as $sub):
									$subUrl = empty($sub->url) ? $this->url->action($sub->action, $sub->controller, $sub->area) : $sub->url;
							?>
							<li>
								<a href="<?php echo $subUrl?>">
									<?php echo $sub->title?>
								</a>
							</li>
							<?php endforeach;?>
						</ul>
					<?php endif;?>
				</li>
			<?php 
					$i++;
				endforeach;?>
		</ul>
		<form action="8.html">
		<div id="search"><!-- Search: See Section D in custom.js -->
			<input type="text" class="search-field clear-focus" value="Search" />
			<input type="submit" class="search-btn" value="Search" />
		</div>
		</form>
		<div class="fclear"></div>
	</div>
</div>
<!-- //End Main Navigation with Search -->
<!-- ********************************************************************* -->